package cn.mengfly.testnrz.im.client.sender;

import cn.mengfly.testnrz.im.ProtoMsg;
import cn.mengfly.testnrz.im.client.builder.LoginMsgBuilder;

public class LoginSender extends BaseSender {

    public void sendLoginMsg() {
        if (!isConnected()) {
            System.out.println("还没有建立连接");
            return;
        }
        System.out.println("构造登录信息");
        ProtoMsg.Message message = LoginMsgBuilder.buildLoginMsg(getUser(), getSession());
        System.out.println("发送登录信息");
        super.sendMsg(message);
    }
}
